error: a NUL byte in commit log message not allowed [migrated]
Posted
by
James
on Programmers
See other posts from Programmers
or by James
Published on 2013-10-31T11:37:54Z
Indexed on
2013/10/31
16:15 UTC
Read the original article
Hit count: 1436
git
I'm trying to commit some files in my Git repository, and I'm receiving this error.
This all started when I ran git rm -rf folder
and git rm -rf file
and tried to commit the changes. I've since been able to commit and push without these files being deleted from my remote repository, however I'm now completely stuck.
The full error is:
error: a NUL byte in commit log message not allowed.
fatal: failed to write commit object
What can I do to fix this? My Google-fu has let me down on this one.
Edit:
I've just checked out these deleted files, and attempted to commit again, but it's still giving me the same error. Has my Git repo been corrupted or something?
© Programmers or respective owner